import { Code } from "astro:components";
import HowPackagesAreResolved from "@partials/how-packages-are-resolved.mdx";

Only run <code>{`syncpack ${props.command}`}</code> on package.json files matching the provided pattern(s).

<HowPackagesAreResolved />

<Code
code={`# only the root package
syncpack ${props.command} --source 'package.json'

# only packages matching a glob

syncpack ${props.command} --source 'packages/beta-\*'

# multiple values can be provided

syncpack ${props.command} --source 'package.json' --source 'packages/beta-\*'`}
lang="bash"
/>
